Skip to content

release: 2.0.0 #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

stainless-app[bot]
Copy link
Contributor

@stainless-app stainless-app bot commented May 8, 2025

Automated Release PR

2.0.0 (2025-05-18)

Full Changelog: v1.6.1...v2.0.0

⚠ BREAKING CHANGES

  • client: change precision of some numeric types
  • client: extract auto pagination to shared classes
  • client: Migration: - If you were referencing the AutoPager class on a specific *Page or *PageAsync type, then you should instead reference the shared AutoPager and AutoPagerAsync types, under the core package
    • AutoPagerAsync now has different usage. You can call .subscribe(...) on the returned object instead to get called back each page item. You can also call onCompleteFuture() to get a future that completes when all items have been processed. Finally, you can call .close() on the returned object to stop auto-paginating early
    • If you were referencing getNextPage or getNextPageParams:
      • Swap to nextPage() and nextPageParams()
      • Note that these both now return non-optional types (use hasNextPage() before calling these, since they will throw if it's impossible to get another page)

Features

  • api: Add reinforcement fine-tuning api support (3a9fcbb)
  • api: further updates for evals API (2b9d5bc)
  • api: manual updates (005a643)
  • api: responses x eval api (66327c5)
  • api: Updating Assistants and Evals API schemas (02c6df6)
  • client: allow providing some params positionally (1c6e875)
  • client: extract auto pagination to shared classes (855d571)
  • client: type safe structured outputs (#463) (e123fdd)

Bug Fixes

  • add missing deploymentModel params (d9af1fb)
  • client: properly support srt and vtt in audio transcriptions. (#472) (1e5bf3d)
  • merge conflict (bf7e961)
  • missing validity (301a38a)

Chores

  • internal: fix custom code (567c86e)

Documentation

  • remove or fix invalid readme examples (fa9f7fc)

Refactors

  • client: change precision of some numeric types (291b0f4)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@stainless-app stainless-app bot requested a review from a team as a code owner May 8, 2025 17:44
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 5 times, most recently from 7c0b462 to f623bca Compare May 8, 2025 23:52
@stainless-app stainless-app bot changed the title release: 1.7.0 release: 2.0.0 May 8, 2025
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 11 times, most recently from 4d4c42d to 240ceb2 Compare May 14, 2025 23:34
stainless-app bot and others added 9 commits May 15, 2025 00:07
refactor(client)!: refactor async auto-pagination
refactor(client)!: rename `getNextPage{,Params}` to `nextPage{,Params}`
refactor(client)!: swap `nextPage{,Params}` to return non-optional

# Migration

- If you were referencing the `AutoPager` class on a specific `*Page` or `*PageAsync` type, then you should instead reference the shared `AutoPager` and `AutoPagerAsync` types, under the `core` package
- `AutoPagerAsync` now has different usage. You can call `.subscribe(...)` on the returned object instead to get called back each page item. You can also call `onCompleteFuture()` to get a future that completes when all items have been processed. Finally, you can call `.close()` on the returned object to stop auto-paginating early
- If you were referencing `getNextPage` or `getNextPageParams`:
   - Swap to `nextPage()` and `nextPageParams()`
   - Note that these both now return non-optional types (use `hasNextPage()` before calling these, since they will throw if it's impossible to get another page)

There are examples and further information about pagination in the readme.
* structured-outputs: updates and more unit tests.

* structured-outputs: repair after bad merge.

* structured-outputs: local validation, unit tests and documentation

* structured-outputs: changes from code review

* structured-outputs: added 'strict' flag

* structured-outputs: support for Responses API, review changes

* structured-outputs: removed support for Responses params Builder.body function

* structured-outputs: extra docs and simpler code

* docs: swap primary structured outputs example

---------

Co-authored-by: Tomer Aberbach <tomer@stainless.com>
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 08625ad to e123fdd Compare May 15, 2025 05:04
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 4753f99 to 66327c5 Compare May 15, 2025 21:57
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from b43b9c9 to 005a643 Compare May 16, 2025 05:05
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 50a683a to 02c6df6 Compare May 16, 2025 17:14
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 305706c to 2b9d5bc Compare May 16, 2025 19:48
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 7ead866 to 301a38a Compare May 16, 2025 19:54
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 1d569ea to 301a38a Compare May 18, 2025 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants